@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>帖子管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
						
						<!--统计时间的样式添加-->
						    <div class="col-sm-2">
                                <select class="form-control" id="timeIndex" name="minCycleC" data-bv-field="minCycleC">
                                    <option value="1">发布时间</option>
                                    <option value="2">统计时间</option>
                                </select>
                            </div>
                            <div class="col-sm-2">
                                <#TimeCon id="startTime" name="起" isTime="false" pattern="YYYY-MM-DD" />
                            </div>
                            <div class="col-sm-2">
                                <#TimeCon id="endTime" name="至" isTime="false" pattern="YYYY-MM-DD" />
                            </div>
                                                  
				            <div class="col-sm-3">
                                <#NameCon id="post_id" name="ID" />
                            </div>
                            <div class="col-sm-3">
                                <#NameCon id="post_name" name="发帖人" />
                            </div>
                            <div class="col-sm-3">
                                <#SelectCon id="post_type" name="查询分类" >
                                    <option value="-1">全部</option> 
                                    <option value="1">后台用户</option>
                                    <option value="2">手机用户</option>
                                </#SelectCon>
                            </div>                                                       
                            <div class="col-sm-6">
                                <#button name="搜索" icon="fa-search" clickFun="Post.search()"/>
                                <#button name="重置" icon="fa-refresh" clickFun="Post.resetSearch()"/>
                                <!-- <#button name="取消禁言" icon="fa-circle-o" clickFun="Post.cancelGap()"/> -->
                            </div>



                        </div>
                        <div class="hidden-xs" id="PostTableToolbar" role="group">
                            @if(shiro.hasPermission("/Post/add")){
                            <#button name="添加" icon="fa-plus" clickFun="Post.openAddPost()"/>
                            @}
                            @if(shiro.hasPermission("/Post/update")){
                            <#button name="修改" icon="fa-plus" clickFun="Post.openPostDetail()" space="true"/>
                            @}

                            @if(shiro.hasPermission("/Post/delete")){
                            <#button name="删除" icon="fa-plus" clickFun="Post.delete()" space="true"/>
                            @}
                            <#button name="置顶" icon="fa-arrow-up" clickFun="Post.postTop()"/>
                            <#button name="取消置顶" icon="fa-arrow-down" clickFun="Post.postCancelTop()"/>
                            <#button name="禁言" icon="fa-ban" clickFun="Post.gap()"/>
                            <#button name="查看评论" icon="fa-search" clickFun="Post.commentManagement()"/>

                            <h4 style="margin:20px 20px " >阅读总次数： <span class="label  label-danger" id="post1" ></span></h4>
                            <h4 style="margin:20px 20px " >登录用户阅读次数： <span class="label  label-danger" id="post2" ></span></h4>

                        </div>
                        <#table id="PostTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/forum/Post/Post.js"></script>
@}
